package com.sright.bcard.content.dal.dao;

import com.sright.bcard.common.service.share.base.dao.BaseDAO;
import com.sright.bcard.content.dal.entity.CardUserCompanyInfoDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CardUserCompanyInfoDAO extends BaseDAO<CardUserCompanyInfoDO> {
    List<CardUserCompanyInfoDO> selectByCardUserInfoIds(List<Long> cardUserInfoIdList);

    List<CardUserCompanyInfoDO> selectByCompanyIds(List<Long> companyIds);

    List<CardUserCompanyInfoDO> selectByCardUserInfoId(@Param("cardUserInfoId") Long cardUserInfoId);

    CardUserCompanyInfoDO selectByIdAndCompanyId(Long cardUserCompanyInfoId, Long companyId);

    void deleteById(Long id);

    CardUserCompanyInfoDO selectByCardUserInfoIdAndCompanyId(Long cardUserInfoId, Long companyId);
}
